package com.sdut.material.service;

import com.sdut.material.pojo.Repository;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdut.material.util.LayUITableResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yu
 * @since 2022-04-20
 */
public interface IRepositoryService extends IService<Repository> {

    int selectSumByMaterialId(int materialId);

    LayUITableResult selectByPage(Long page, Long limit);

    void deleteById(Integer repositoryId);

    Repository selectBySupplierMaterialId(int supplierMaterialId);

    void insert(Repository newRepository);

    void updateRepository(Repository repository);
}
